package fy.hr.bean;

import java.lang.reflect.Field;

import org.json.JSONObject;

public class LogBean {

	private String title;
	
	private String formName;

	private String sender;

	private String dep;

	private String account;

	private String startTime;

	private String finishTime;

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getDep() {
		return dep;
	}

	public void setDep(String dep) {
		this.dep = dep;
	}

	public String getFinishTime() {
		return finishTime;
	}

	public void setFinishTime(String errorTime) {
		this.finishTime = errorTime;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public JSONObject getJSON() {
		JSONObject jo = new JSONObject();
		Field[] fields = this.getClass().getDeclaredFields();
		try {
			for (int i = 0, length = fields.length; i < length; i++) {
				jo.put(fields[i].getName(), fields[i].get(this));
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
		return jo;
	}

	public String getFormName() {
		return formName;
	}

	public void setFormName(String flowName) {
		this.formName = flowName;
	}
}
